package structure.facade;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author lzp
 * @Date:2023/2/24
 * @description: 工商注册业务
 */
public class AdminOfIndustry {


	/**
	 * 自增的公司id
	 */
	private static AtomicInteger cpId = new AtomicInteger(0);

	/**
	 * 注册公司
	 *
	 * @param name
	 * @return
	 */
	public Company register(String name) {
		return new Company(name, cpId.addAndGet(1));
	}

}
